package com.example.system.domain.question.dto;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QuestionAddDTO{
    @NotBlank(message = "题目标题不能为空")
    private String title;
    @NotNull(message = "题目难度不能为空")
    private Integer difficulty;
    @NotNull(message = "题目时间限制不能为空")
    private Long timeLimit;
    @NotNull(message = "题目空间限制不能为空")
    private  Long spaceLimit;
    @NotBlank(message = "题目内容限制不能为空")
    private String content;
    @NotBlank(message = "题目时用例限制不能为空")
    private String questionCase;
    @NotBlank(message = "题目默认代码限制不能为空")
    private String defaultCode;
    @NotBlank(message = "题目main函数限制不能为空")
    private String mainFuc;
}
